package com.interview.javabase.singleton;

/**
 * @author: zsg
 * @description:
 * 饿汉式：
 * 	静态代码块饿汉式（适合复杂实例化）
 *
 * @date: 2019/7/7 10:06
 * @modified:
 */
public class Demo3 {

    private final static Demo3 INSTANCE;
    static {
        INSTANCE = new Demo3();
    }
    private Demo3(){
    }

    public static Demo3 getInstance(){
        return INSTANCE;
    }
}
